import { createStore, applyMiddleware } from 'redux'
import reducer from './reducer/index'
import thunk from 'redux-thunk' // redux中间件：作用：有了这个thunk中间件，咱们就可以在action {}中书写异步函数了

const store = createStore(
    reducer,
    applyMiddleware(thunk)
)
export default store;